﻿using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;

public partial class CustomerManagement_UserBalanceRunningAccountDetail : System.Web.UI.Page
{
    private string Code
    {
        get
        {
            return Request.QueryString["code"] != null ? Request.QueryString["code"].ToString() : "";
        }
    }

    
    protected void Page_Load(object sender, EventArgs e)
    {
        Check.CheckPermission("300400103");
        if (!IsPostBack)
        {
            BindMain();
            BindDetail();
        }
        

    }
    private void BindMain()
    {
        dlistMain.DataSource = new BLL.BALANCEADJUST().GetById(this.Code);
        dlistMain.DataBind();
    }

    private void BindDetail()
    {

        dlistDetail.DataSource = new BLL.BADETAIL().GetDetailsById(this.Code);
        dlistDetail.DataBind();
    }
}
